public class City {
	private String name; // name of the city
	private int xCoor; // X-Coordinate of the city
	private int yCoor; // Y-Coordinate of the city

	/** Constructor */
	public City(String n, int x, int y) {
		name = n;
		xCoor = x;
		yCoor = y;
	}

	/** Get and set city name */
	public String name() {
		return name;
	}

	public void setName(String n) {
		name = n;
	}

	/** get and set X-Coordinate */
	public int xCoor() {
		return xCoor;
	}

	public void setXCoor(int x) {
		xCoor = x;
	}

	/** get and set Y-Coordinate */
	public int yCoor() {
		return yCoor;
	}

	public void setYCoor(int y) {
		yCoor = y;
	}

	public String toString() {
		return "" + xCoor + " " + yCoor + " " + name;
	}
}
